﻿using System.Runtime.InteropServices;
using System.Web.UI;

namespace Practical.SharePoint.Base
{
    [Guid("511f4b7f-93e9-46e8-990f-4c23243ac99b")]
    public class VersionInfo : Control
    {
        protected override void CreateChildControls()
        {
            base.CreateChildControls();
            this.Controls.Add(new HiddenDebugControl("AssemblyFileVersion", AssemblyUtilities.GetAssemblyFileVersion()));
            this.Controls.Add(new HiddenDebugControl("AssemblyDescription", AssemblyUtilities.GetAssemblyDescription()));
            this.Controls.Add(new HiddenDebugControl("AssemblyConfiguration", AssemblyUtilities.GetAssemblyConfiguration()));
        }
    }
}
